package com.jingdianjichi.auth.service;


import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;

import java.util.List;

/**
 *权限领域service
 * @since 2024-04-14 23:18:26
 */
public interface AuthPermissionDomainService {

    /**
     * 添加权限
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 修改权限
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 从redis中查询用户权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
